package main

import (
	"fmt"
	"time"

	"gitee.com/gousing/cache"
)

func main() {
	fmt.Println(cache.DefaultExpire())
	cache.Set("key1", "key1 string value")
	fmt.Println(cache.Get("key1"))
	fmt.Println(cache.TTL("key1"))
	cache.Expire("key1", time.Minute)
	fmt.Println(cache.TTL("key1"))
	cache.Delete("key1")
	fmt.Println(cache.Get("key1"))
}
